package com.xfatm.util.date;

import com.xfatm.util.string.StringUtils;

import java.util.Calendar;
import java.util.Date;

public class DateExample {
    public static void main(String[] args){
        //获取每周第一天
        System.out.println( DateUtils.getWeekFirstDay(new Date(), Calendar.MONDAY));;
        //获取一周的数据
        System.out.println(StringUtils.list2String(DateUtils.getThisWeekDate(new Date()),","));
        //获取周最后一天
        System.out.println(DateUtils.getWeekLastDay(new Date(),Calendar.MONDAY));
    }
}
